<template>
  <div>
    <h3>{{msg}} 当前用户：xxx</h3>
    <a href="javascript:void(0)" @click="logout">安全退出</a><hr/>

    <router-link :to="{name:'welcome'}">首页</router-link>
    <router-link :to="{name:'stu'}">学生管理</router-link>
    <router-link :to="{name:'acc'}">帐户管理</router-link>
    <router-link :to="{name:'cate'}">类型管理</router-link>
    <router-link :to="{name:'dept'}">部门管理</router-link>
  </div>
</template>

<script>
export default {
  name: "top",
  data(){
    return {
      msg: "欢迎光临我的主页"
    };
  },
  methods:{
    logout(){
      this.$router.push({name:"login"});
    }
  }
}
</script>

<style scoped>

</style>
